<%@ taglib prefix="fmt" uri="http://java.sun.com/jstl/fmt_rt" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<!DOCTYPE html>
<html lang="zh">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" />
<title>评论</title>
<link rel="icon" href="" type="image/ico">
<meta name="keywords" content="">
<meta name="description" content="">
<meta name="author" content="yinqi">
<link href="${pageContext.request.contextPath}/static/css/bootstrap.min.css" rel="stylesheet">
<link href="${pageContext.request.contextPath}/static/css/materialdesignicons.min.css" rel="stylesheet">
<link href="${pageContext.request.contextPath}/static/css/style.min.css" rel="stylesheet">
</head>
  
<body>

<div class="container-fluid p-t-15">
  <div class="row">
    <div class="col-sm-12 col-md-12">
      <div class="card">
        <div class="card-header bg-primary">
          <h4>笔记标题:${note.title}</h4>
        </div>
        <c:forEach var="com" items="${coms}">
          <div class="card-body">
            <p>${com.loginname}：${com.contents}</p>
            <div><fmt:formatDate value="${com.createtime}" pattern="yyyy-MM-dd HH:mm:ss"/> <a class="btn-brown" href="${pageContext.request.contextPath}/com/delComById?id=${com.id}&noteid=${note.id}">删除此条评论</a></div>
          </div>
        </c:forEach>
      </div>
    </div>
  </div>
</div>

<script type="text/javascript" src="${pageContext.request.contextPath}/static/js/jquery.min.js"></script>
<script type="text/javascript" src="${pageContext.request.contextPath}/static/js/bootstrap.min.js"></script>
<script type="text/javascript" src="${pageContext.request.contextPath}/static/js/main.min.js"></script>
</body>
</html>